package com.example.dream.satrt.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @className PageController
 * @Description 页面跳转统一配置
 * @Autor WUAO
 * @Date 2022/8/14 02 20
 */
@Controller
public class PageController {
    /**
     * 去到登录页面 login/page.html
     * @return
     */
    @RequestMapping("/index/{page}")
    public String toPage(@PathVariable String page) {
        String url = "index/" + page;
        return url;
    }

}
